package com.example.offer.no0004;

import java.util.Arrays;

import com.example.offer.no0004.impl.ForSolutionImpl;

/**
 * 解答测试-数组中重复的数字
 *
 * @author yumuhui
 */
public class SolutionTest {

    static int[][] matrix = {
            {1, 4, 7, 11, 15},
            {2, 5, 8, 12, 19},
            {3, 6, 9, 16, 22},
            {10, 13, 14, 17, 24},
            {18, 21, 23, 26, 30},
            {40, 50, 60, 70, 80}
    };

    static int target = 5;
    //    static int target = 20;

    public static void main(String[] a1rgs) {

        System.out.println("输入数组为: " + Arrays.toString(matrix));

        Solution solution = new ForSolutionImpl();

        System.out.println(solution.findNumberIn2DArray(matrix, target));
    }
}
